package com.otod.repository;

import com.otod.entity.Trader;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface TraderDao extends PagingAndSortingRepository<Trader, Long> {

    public Trader findByCode(String code);

    @Query("from Trader where id not in (42,43) order by currAmount")
    public List<Trader> findAllTrader();

}
